/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import de.hsmannheim.pepa.patientenportal.apanwep.service.persistence.messages_mobjectsPK;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link de.hsmannheim.pepa.patientenportal.apanwep.service.http.messages_mobjectsServiceSoap}.
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.http.messages_mobjectsServiceSoap
 * @generated
 */
public class messages_mobjectsSoap implements Serializable {
	public static messages_mobjectsSoap toSoapModel(messages_mobjects model) {
		messages_mobjectsSoap soapModel = new messages_mobjectsSoap();

		soapModel.setMessages_ID(model.getMessages_ID());
		soapModel.setMessageobjects_id(model.getMessageobjects_id());

		return soapModel;
	}

	public static messages_mobjectsSoap[] toSoapModels(
		messages_mobjects[] models) {
		messages_mobjectsSoap[] soapModels = new messages_mobjectsSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static messages_mobjectsSoap[][] toSoapModels(
		messages_mobjects[][] models) {
		messages_mobjectsSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new messages_mobjectsSoap[models.length][models[0].length];
		}
		else {
			soapModels = new messages_mobjectsSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static messages_mobjectsSoap[] toSoapModels(
		List<messages_mobjects> models) {
		List<messages_mobjectsSoap> soapModels = new ArrayList<messages_mobjectsSoap>(models.size());

		for (messages_mobjects model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new messages_mobjectsSoap[soapModels.size()]);
	}

	public messages_mobjectsSoap() {
	}

	public messages_mobjectsPK getPrimaryKey() {
		return new messages_mobjectsPK(_messages_ID, _messageobjects_id);
	}

	public void setPrimaryKey(messages_mobjectsPK pk) {
		setMessages_ID(pk.messages_ID);
		setMessageobjects_id(pk.messageobjects_id);
	}

	public long getMessages_ID() {
		return _messages_ID;
	}

	public void setMessages_ID(long messages_ID) {
		_messages_ID = messages_ID;
	}

	public long getMessageobjects_id() {
		return _messageobjects_id;
	}

	public void setMessageobjects_id(long messageobjects_id) {
		_messageobjects_id = messageobjects_id;
	}

	private long _messages_ID;
	private long _messageobjects_id;
}